import {
} from '@/config/dict'

// {
//   key: 'useStatus',
//   label: '默认值',
//   minWidth: 100
// },
export const tableColumn = (page, size) => {
  return [
    {
      key: 'configName',
      label: '参数名',
      minWidth: 120
    },
    {
      key: 'configValue',
      label: '参数值',
      minWidth: 140
    },
    {
      key: 'comment',
      label: '备注',
      minWidth: 120,
      placeholder: '请输入'
    }
  ]
}

export const updateFormItem = disabled => {
  return [
    {
      type: 'input',
      key: 'configName',
      label: '参数名',
      required: true,
      col: 24,
      slotAttrs: {
        style: {
          width: '248px'
        },
        size: 'small',
        disabled: disabled
      }
    },
    {
      type: 'input',
      key: 'configValue',
      label: '参数值',
      required: true,
      col: 24,
      slotAttrs: {
        style: {
          width: '248px'
        },
        size: 'small',
        disabled: disabled
      }
    },
    {
      type: 'input',
      key: 'comment',
      label: '备注',
      // required: true,
      col: 24,
      slotAttrs: {
        style: {
          width: '248px'
        },
        size: 'small',
        disabled: disabled
      }
    }
  ]
}
